package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_SystemConfig")
@ApiModel(value = "BpmSystemConfig", description = "系统配置")
public class BpmSystemConfig  implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnId;
	
	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "所属应用", required = false)
	private String appId;

	@Column(name = "Folderid")
	@ApiModelProperty(value = "所属节点", required = false)
	private String folderid;

	@Column(name = "Configid")
	@ApiModelProperty(value = "唯一编号", required = false)
	private String configid;

	@Column(name = "ConfigValue")
	@ApiModelProperty(value = "配置值", required = false)
	private String configValue;

	@Column(name = "ConfigName")
	@ApiModelProperty(value = "名称", required = false)
	private String configName;

	@Column(name = "ConfigType")
	@ApiModelProperty(value = "所属分类", required = false)
	private String configType;

	@Column(name = "WF_NoUpdate")
	@ApiModelProperty(value = "升级时禁止更新", required = false)
	private String noUpdate;

	@Column(name = "Remark")
	@ApiModelProperty(value = "备注", required = false)
	private String remark;

	@Column(name = "WF_CacheFlag")
	@ApiModelProperty(value = "加入缓存", required = false)
	private String cacheFlag;

	@Column(name = "WF_Version")
	@ApiModelProperty(value = "版本", required = false)
	private String version;

	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "创建时间", required = false)
	private String docCreated;

	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "最后更新时间", required = false)
	private String lastModified;

	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "创建用户ID", required = false)
	private String addName;

	@Column(name = "WF_AddName_CN")
	@ApiModelProperty(value = "创建用户", required = false)
	private String addNameCn;

}

